import bot from "../model/bot/amesu";
import browser, { tempDir } from "../model/browser/browser";
import func from "../model/func";
import { MsgAction, Tpl_panel_title } from "../shared/master/MsgAction";

export default function(data:MsgAction){
    let d = data.data as Tpl_panel_title;
    // bot.sendText(data.tolocation,str || '错误的内容');
    browser.render(tempDir.称号模版, {
        style_body:d.style_id,
        style_title:d.style_title_id,
        a:d.title_value
    }).then((png) => {
        bot.sendLocaImage(data.tolocation, png);
    });
}